std::vector::push_back

From Cppreference

Jump to: navigation, search
void push_back( const T& value );

void push_back( T&& value );
(C++0x feature)

Appends the given element value to the end of the container.

Contents

Parameters

value - the value of the element to append

Return value

(none)

Complexity

constant.

See also

emplace_back (C++0x)
constructs elements in-place at the end
(public member function)
pop_back
removes the last element
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages